all:main
main:lib/libcal.a main.c
	gcc -Iinclude -o main main.c -Llib -lcal
lib/libcal.a:lib/add.o lib/sub.o
	ar rcs lib/libcal.a lib/add.o lib/sub.o
lib/add.o:src/add.c
	gcc -Iinclude -c src/add.c -o lib/add.o
lib/sub.o:src/sub.c
	gcc -Iinclude -c src/sub.c -o lib/sub.o
.PHONY:clean
clean:
	rm -f lib/*.o lib/libcal.a main
